﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C59 RID: 3161
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class NewMapRot : IMessage<NewMapRot>, IMessage, IEquatable<NewMapRot>, IDeepCloneable<NewMapRot>, IBufferMessage
	{
		// Token: 0x170027CE RID: 10190
		// (get) Token: 0x06008D49 RID: 36169 RVA: 0x0017753D File Offset: 0x0017573D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<NewMapRot> Parser
		{
			get
			{
				return NewMapRot._parser;
			}
		}

		// Token: 0x170027CF RID: 10191
		// (get) Token: 0x06008D4A RID: 36170 RVA: 0x00177544 File Offset: 0x00175744
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return NewMapRotReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170027D0 RID: 10192
		// (get) Token: 0x06008D4B RID: 36171 RVA: 0x00177556 File Offset: 0x00175756
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return NewMapRot.Descriptor;
			}
		}

		// Token: 0x06008D4C RID: 36172 RVA: 0x0017755D File Offset: 0x0017575D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NewMapRot()
		{
		}

		// Token: 0x06008D4D RID: 36173 RVA: 0x00177568 File Offset: 0x00175768
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NewMapRot(NewMapRot other) : this()
		{
			this.vector4_ = ((other.vector4_ != null) ? other.vector4_.Clone() : null);
			this.vector3_ = ((other.vector3_ != null) ? other.vector3_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008D4E RID: 36174 RVA: 0x001775C4 File Offset: 0x001757C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public NewMapRot Clone()
		{
			return new NewMapRot(this);
		}

		// Token: 0x170027D1 RID: 10193
		// (get) Token: 0x06008D4F RID: 36175 RVA: 0x001775CC File Offset: 0x001757CC
		// (set) Token: 0x06008D50 RID: 36176 RVA: 0x001775D4 File Offset: 0x001757D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Vector4 Vector4
		{
			get
			{
				return this.vector4_;
			}
			set
			{
				this.vector4_ = value;
			}
		}

		// Token: 0x170027D2 RID: 10194
		// (get) Token: 0x06008D51 RID: 36177 RVA: 0x001775DD File Offset: 0x001757DD
		// (set) Token: 0x06008D52 RID: 36178 RVA: 0x001775E5 File Offset: 0x001757E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public Vector Vector3
		{
			get
			{
				return this.vector3_;
			}
			set
			{
				this.vector3_ = value;
			}
		}

		// Token: 0x06008D53 RID: 36179 RVA: 0x001775EE File Offset: 0x001757EE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as NewMapRot);
		}

		// Token: 0x06008D54 RID: 36180 RVA: 0x001775FC File Offset: 0x001757FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(NewMapRot other)
		{
			return other != null && (other == this || (object.Equals(this.Vector4, other.Vector4) && object.Equals(this.Vector3, other.Vector3) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008D55 RID: 36181 RVA: 0x00177650 File Offset: 0x00175850
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.vector4_ != null)
			{
				num ^= this.Vector4.GetHashCode();
			}
			if (this.vector3_ != null)
			{
				num ^= this.Vector3.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008D56 RID: 36182 RVA: 0x001776A2 File Offset: 0x001758A2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008D57 RID: 36183 RVA: 0x001776AA File Offset: 0x001758AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008D58 RID: 36184 RVA: 0x001776B4 File Offset: 0x001758B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.vector4_ != null)
			{
				output.WriteRawTag(66);
				output.WriteMessage(this.Vector4);
			}
			if (this.vector3_ != null)
			{
				output.WriteRawTag(90);
				output.WriteMessage(this.Vector3);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008D59 RID: 36185 RVA: 0x00177710 File Offset: 0x00175910
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.vector4_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Vector4);
			}
			if (this.vector3_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Vector3);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008D5A RID: 36186 RVA: 0x00177768 File Offset: 0x00175968
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(NewMapRot other)
		{
			if (other == null)
			{
				return;
			}
			if (other.vector4_ != null)
			{
				if (this.vector4_ == null)
				{
					this.Vector4 = new Vector4();
				}
				this.Vector4.MergeFrom(other.Vector4);
			}
			if (other.vector3_ != null)
			{
				if (this.vector3_ == null)
				{
					this.Vector3 = new Vector();
				}
				this.Vector3.MergeFrom(other.Vector3);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008D5B RID: 36187 RVA: 0x001777E8 File Offset: 0x001759E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008D5C RID: 36188 RVA: 0x001777F4 File Offset: 0x001759F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 66U)
				{
					if (num != 90U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.vector3_ == null)
						{
							this.Vector3 = new Vector();
						}
						input.ReadMessage(this.Vector3);
					}
				}
				else
				{
					if (this.vector4_ == null)
					{
						this.Vector4 = new Vector4();
					}
					input.ReadMessage(this.Vector4);
				}
			}
		}

		// Token: 0x040035EA RID: 13802
		private static readonly MessageParser<NewMapRot> _parser = new MessageParser<NewMapRot>(() => new NewMapRot());

		// Token: 0x040035EB RID: 13803
		private UnknownFieldSet _unknownFields;

		// Token: 0x040035EC RID: 13804
		public const int Vector4FieldNumber = 8;

		// Token: 0x040035ED RID: 13805
		private Vector4 vector4_;

		// Token: 0x040035EE RID: 13806
		public const int Vector3FieldNumber = 11;

		// Token: 0x040035EF RID: 13807
		private Vector vector3_;
	}
}
